package org.extframework.ld.http.abstr;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletResponseWrapper;

/**
 * @author : Dong.Li
 * @created : 2013-1-17
 * @version : 1.0
 * @description :
 */
public abstract class AbstractEncryptionWebResponse extends
		HttpServletResponseWrapper {

	public AbstractEncryptionWebResponse(HttpServletResponse response) {
		super(response);
	}

	public abstract void printSuccessJ(String paramString) throws IOException;
	
	public abstract void printSuccessJson(String paramString) throws IOException;

	public abstract void printJson(String paramString) throws IOException;

	public abstract void printEncryptionJson(String paramString) throws IOException;
	
	public abstract void printSuccess(String paramString) throws IOException;

	public abstract void printError(String paramString) throws IOException;

	public abstract void printStr(String paramString) throws IOException;
	
	public abstract void printSuccessStr(String paramString) throws IOException;

	public void endPrint(PrintWriter writer) {
		writer.flush();
		writer.close();
	}

}
